package com.ruoyi.doorcontrol.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门禁用户对象 th_doorcontrol_user
 * 
 * @author zhang
 * @date 2024-07-18
 */
public class ThDoorcontrolUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 门禁人员 */
    private Long id;

    /** 员工编号 */
    @Excel(name = "员工编号")
    private String employeeNo;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String uname;

    /** 身份证 */
    @Excel(name = "身份证")
    private String idCard;

    /** 用户类型 */
    @Excel(name = "用户类型")
    private String userType;

    /** 使能有效期 */
    @Excel(name = "使能有效期")
    private String enable;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
    private String email;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phonenumber;

    /** 用户性别（0男 1女 2未知） */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /** 房间编号 */
    @Excel(name = "房间编号")
    private Long roomId;

    /** 卡号 */
    @Excel(name = "卡号")
    private String cardNo;

    /** 门密码 */
    @Excel(name = "门密码")
    private String pwdNo;

    /** 状态 0正常 1删除 */
    @Excel(name = "状态 0正常 1删除")
    private String status;

    /** 开锁方式 */
    @Excel(name = "开锁方式")
    private String ulock;

    /** 卡片id */
    @Excel(name = "卡片id")
    private Long cardId;

    /** 门禁 */
    @Excel(name = "门禁")
    private String controlIds;

    /** 类型  */
    @Excel(name = "类型 ")
    private String types;

    /** 公司名字 */
    @Excel(name = "公司名字")
    private String company;

    /** 来源 */
    @Excel(name = "来源")
    private String froms;

    /** 拜访人姓名 */
    @Excel(name = "拜访人姓名")
    private String visitName;

    /** 拜访部门 */
    @Excel(name = "拜访部门")
    private String visitBumen;

    /** 拜访是由 */
    @Excel(name = "拜访是由")
    private String visitInfo;

    /** $column.columnComment */
    @Excel(name = "照片", readConverterExp = "$column.readConverterExp()")
    private String photo;

    /** 车牌 */
    @Excel(name = "车牌")
    private String plateNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEmployeeNo(String employeeNo) 
    {
        this.employeeNo = employeeNo;
    }

    public String getEmployeeNo() 
    {
        return employeeNo;
    }
    public void setUname(String uname) 
    {
        this.uname = uname;
    }

    public String getUname() 
    {
        return uname;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setUserType(String userType) 
    {
        this.userType = userType;
    }

    public String getUserType() 
    {
        return userType;
    }
    public void setEnable(String enable) 
    {
        this.enable = enable;
    }

    public String getEnable() 
    {
        return enable;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPhonenumber(String phonenumber) 
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() 
    {
        return phonenumber;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setCardNo(String cardNo) 
    {
        this.cardNo = cardNo;
    }

    public String getCardNo() 
    {
        return cardNo;
    }
    public void setPwdNo(String pwdNo) 
    {
        this.pwdNo = pwdNo;
    }

    public String getPwdNo() 
    {
        return pwdNo;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setUlock(String ulock) 
    {
        this.ulock = ulock;
    }

    public String getUlock() 
    {
        return ulock;
    }
    public void setCardId(Long cardId) 
    {
        this.cardId = cardId;
    }

    public Long getCardId() 
    {
        return cardId;
    }
    public void setControlIds(String controlIds) 
    {
        this.controlIds = controlIds;
    }

    public String getControlIds() 
    {
        return controlIds;
    }
    public void setTypes(String types) 
    {
        this.types = types;
    }

    public String getTypes() 
    {
        return types;
    }
    public void setCompany(String company) 
    {
        this.company = company;
    }

    public String getCompany() 
    {
        return company;
    }
    public void setFroms(String froms) 
    {
        this.froms = froms;
    }

    public String getFroms() 
    {
        return froms;
    }
    public void setVisitName(String visitName) 
    {
        this.visitName = visitName;
    }

    public String getVisitName() 
    {
        return visitName;
    }
    public void setVisitBumen(String visitBumen) 
    {
        this.visitBumen = visitBumen;
    }

    public String getVisitBumen() 
    {
        return visitBumen;
    }
    public void setVisitInfo(String visitInfo) 
    {
        this.visitInfo = visitInfo;
    }

    public String getVisitInfo() 
    {
        return visitInfo;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setPlateNum(String plateNum) 
    {
        this.plateNum = plateNum;
    }

    public String getPlateNum() 
    {
        return plateNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("employeeNo", getEmployeeNo())
            .append("uname", getUname())
            .append("idCard", getIdCard())
            .append("userType", getUserType())
            .append("enable", getEnable())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("email", getEmail())
            .append("phonenumber", getPhonenumber())
            .append("sex", getSex())
            .append("remark", getRemark())
            .append("roomId", getRoomId())
            .append("cardNo", getCardNo())
            .append("pwdNo", getPwdNo())
            .append("status", getStatus())
            .append("ulock", getUlock())
            .append("cardId", getCardId())
            .append("controlIds", getControlIds())
            .append("types", getTypes())
            .append("company", getCompany())
            .append("froms", getFroms())
            .append("visitName", getVisitName())
            .append("visitBumen", getVisitBumen())
            .append("visitInfo", getVisitInfo())
            .append("photo", getPhoto())
            .append("plateNum", getPlateNum())
            .toString();
    }
}
